home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / batvew11.zip / ALEARNME.BAT < prev    next >
DOS Batch File  |  1993-10-07  |  23KB  |  671 lines

  1. @ECHO OFF
  2. echo off
  3. REM PAGE 1
  4. AMSG +27 15 113 "Learn me" "HOW TO USE THE A BATCH VIEW UTILITY PROGRAMS"
  5. REM PAGE 2
  6. AMSG +27 15 113 " 30 Minutes" /ask "Tutorial takes Approximately 30 minutes." Continue
  7. IF ERRORLEVEL 1 GOTO TOK
  8. IF ERRORLEVEL 0 GOTO TUTEND
  9. :TOK
  10. REM PAGE 2
  11. ACLS +31
  12. AECHO @205:75
  13. AECHO "You can display a Quick Help Screen for any of the utility programs"
  14. AECHO "except Aecho.exe by typing its name on the dos command line. The help"
  15. AECHO "screens will provide you with a short description of how the program"
  16. AECHO "operates. The Aecho help screen may be viewed by using it's /h option."
  17. AECHO @196:32
  18. AECHO "Just enter the program name on the command line,"
  19. AECHO "like this...C:\ ACLS."
  20. AECHO "This tutorial will display several of the utility program help screens."
  21. AECHO @196:32
  22. AECHO "Here's a look at the help screen for the ACLS program."
  23. AECHO @196:32
  24. AMSCROLL /pauz +27 27 A
  25. REM PAGE 3
  26. ACLS
  27. AECHO
  28. AECHO @205:75
  29. AMSCROLL /pauz +116 27 A
  30. ACLS /hz +11
  31. REM PAGE 4
  32. AECHO @205:75
  33. AECHO "The method of clearing the screen that you just saw was done with"
  34. AECHO "the ACLS utility program using the /hz switch."
  35. AECHO @196:32
  36. AECHO "ACLS provides several different methods to clear the display"
  37. AECHO "and is very simple to use."
  38. AECHO @196:32
  39. AECHO "You designate the way ACLS will clear the display by passing it the"
  40. AECHO "desired option switch on the Dos command line."
  41. AECHO @196:32
  42. AECHO "You're probably already familiar with switches from using DOS."
  43. AECHO "ACLS operates in a similar manner."
  44. AECHO @196:32
  45. AECHO "A switch or an option is entered after the program name"
  46. AECHO "and separated by a space."
  47. AECHO @196:32
  48. AECHO "Like this.... ACLS /hz"
  49. AECHO @196:32
  50. AECHO "Make sure you enter a space between the program name and the switch!"
  51. AECHO @196:32
  52. AECHO "Just in case you missed some of the ACLS options the first time,"
  53. AECHO "here's a chance to check them out again."
  54. AECHO @196:32
  55. AMSCROLL /pauz +113 27 A
  56. ACLS
  57. REM PAGE 5
  58. AECHO
  59. AECHO @205:80
  60. AMSCROLL /pauz +112 27 A
  61. ACLS +23
  62. AECHO @205:75
  63. AECHO "ACLS can also be used to change the default screen colors."
  64. AECHO @196:32
  65. AECHO "If you have a color monitor, the text you're reading should"
  66. AECHO "be light gray and the background blue."
  67. AECHO @196:32
  68. AECHO "To use ACLS to change the screen colors, just enter an"
  69. AECHO "an attribute preceeded by a + symbol."
  70. AECHO @196:32
  71. AECHO "Typing ACLS +23 on the command line produces this screen."
  72. AECHO "The screen attribute is made by adding a foreground and background"
  73. AECHO "color. 7 + 16 = 23. 7 = light gray, 16 = Blue."
  74. AECHO @196:32
  75. AECHO "All the A BATCH VIEW Utility Programs use color attributes to"
  76. AECHO "control screen colors. Attributes can be referenced in the"
  77. AECHO "Software Manual, or by entering a /c or color switch alone"
  78. AECHO "after any of the utility program names that use attributes."
  79. AECHO "The AEXAMPLS.BAT file will also demonstrate the use of attributes."
  80. AECHO @196:32
  81. AECHO "Typing ... ACLS color or ACLS /c, displays the attributes."
  82. AECHO @196:32
  83. AMSCROLL /pauz +113 27 A
  84. REM PAGE 6
  85. ACLS color
  86. AMSCROLL /pauz +112 27 A
  87. REM PAGE 7
  88. ACLS /out +7
  89. AECHO @205:75
  90. AECHO "HOW TO USE AMSG"
  91. AECHO @196:32
  92. AECHO "AMSG generates display windows for any relevant information"
  93. AECHO "you might wish to pass on to users of your batch files."
  94. AECHO @196:32
  95. AECHO "You can also use it to ask questions to determine the"
  96. AECHO "appropriate course of action for your batch file."
  97. AECHO @196:32
  98. AECHO "To use AMSG you must tell it what to put on the display screen."
  99. AECHO "You pass the controlling parameters to AMSG in the same manner"
  100. AECHO "that was demonstrated for the ACLS program."
  101. AECHO @196:32
  102. AECHO "AMSG automatically centers the message window on the screen."
  103. AECHO @196:32
  104. AECHO "To display a black & white message"
  105. AECHO "you would type..... AMSG 197 @34Hey you, read this!@34"
  106. AECHO @196:32
  107. AMSCROLL /pauz +112 27 A
  108. REM PAGE 8
  109. AMSG 197 "Hey you, read this!"
  110. REM PAGE 9
  111. AECHO @196:32
  112. AECHO "As was just seen, the window is automatically centered on the screen"
  113. AECHO "and an instructional prompt is added to your text.."
  114. AECHO @196:32
  115. AECHO "Hopefully, you're still wondering what the number 197 did on the previous"
  116. AECHO "display screen. 197 represents the ascii code that filled the background"
  117. AECHO "screen providing the wallpaper and allowing you to see the shadowed backdrop"
  118. AECHO "of the pop up window. You may also enter a text string in this field. This"
  119. AECHO "was done with the first two screens you saw. You can use the AVIEWDOC Batch"
  120. AECHO "file to see a listing of Ascii codes."
  121. AECHO "The format for black and white message prompts is...."
  122. AECHO @196:32
  123. AECHO "AMSG screen-ascii messages...."
  124. AECHO @196:32
  125. AECHO "SCREEN-ASCII = The Ascii code for the background."
  126. AECHO @196:32
  127. AECHO "Before we cover information about message options,"
  128. AECHO "here's a quick look at the available ASCII CODES."
  129. AECHO "Again, you can use AVIEWDOC.BAT to view them."
  130. AECHO @196:32
  131. AMSCROLL /pauz +112 27 A
  132. REM PAGE 10
  133. APAGE +23 ASCIICDS.DOC
  134. ACLS +7
  135. REM PAGE 11
  136. AECHO @205:72
  137. AECHO "The message option is where you enter the text you want displayed."
  138. AECHO @196:32
  139. AECHO "Entering...AMSG 197 @34Hey you, read this!@34  displays a message"
  140. AECHO "window with the text on one line."
  141. AECHO @196:32
  142. AECHO "Enclosing your message within quotation marks ensures that"
  143. AECHO "it will be displayed as one line of text. If you wish to break"
  144. AECHO "up your message into several lines, enclose each segment of text"
  145. AECHO "with quotes. The text is automatically centered inside the window."
  146. AECHO @196:32
  147. AECHO "AMSG 197 @34Hey you,@34 @34read this!@34"
  148. AECHO @196:32
  149. AECHO "This will display your message on two lines in the display window."
  150. AECHO @196:32
  151. AECHO "To review what was just covered and see what else AMSG can do"
  152. AECHO "here's a look at its Quick Help Screen."
  153. AECHO @196:32
  154. AMSCROLL /pauz +112 27 A
  155. REM PAGE 12
  156. AMSG
  157. AMSCROLL /pauz +112 27 A
  158. REM PAGE 13
  159. ACLS /vt +31
  160. AECHO @205:72
  161. AECHO "Amsg allows you to display information about the computer system"
  162. AECHO "with, or without adding your own message text."
  163. AECHO @196:32
  164. AECHO "To do this you add the desired option switch in this format.."
  165. AECHO @196:32
  166. AECHO "AMSG screen-ascii [option switch] messages...."
  167. AECHO @196:32
  168. AECHO "There are six available option switches."
  169. AECHO "Three switches display system information ( /td, /dsk, /env )."
  170. AECHO "The ( /ask ) option turns your message into a question."
  171. AECHO "Two options allow input ( /npt, /erl )."
  172. AECHO @196:32
  173. AECHO "Its a lot easier to show you what the switches do, as opposed"
  174. AECHO "to describing them, so here's a few examples."
  175. AECHO @196:32
  176. AMSCROLL /pauz +27 27 A
  177. REM PAGE 14
  178. AMSG +27 15 113 "Chronometer" /td "/td - Shows the Time and Date"
  179. REM PAGE 15
  180. AMSG +27 15 113 "Logical Disks" /dsk "/dsk - Shows the Directory and Disk Drives"
  181. REM PAGE 16
  182. AMSG +27 15 113 "Environment" /env "/env - Shows your Environment Variables and Dos Version"
  183. REM PAGE 17
  184. AMSG +27 15 113 "Ask me" /ask "/ask - Shows a test question with two answers" "Press Y or N"
  185. REM PAGE 18
  186. IF ERRORLEVEL 1 GOTO YSEL
  187. IF ERRORLEVEL 0 GOTO NOSEL
  188. :YSEL
  189. AECHO @205:72
  190. AECHO "You selected a yes answer and AMSG returned Errorlevel code 1"
  191. GOTO SELEND
  192. :NOSEL
  193. AECHO @205:72
  194. AECHO "You selected a no answer and AMSG returned Errorlevel code 0"
  195. :SELEND
  196. AECHO "to the batch file."
  197. AECHO @196:32
  198. AECHO "The /ask option enables you to force a binary question."
  199. AECHO "It only accepts a Y or N keypress but is not sensitive"
  200. AECHO "about upper or lower case responses."
  201. AECHO @196:32
  202. AECHO "AMSG returns an errorlevel code of 0 if N is pressed,"
  203. AECHO "and 1 if Y is pressed."
  204. AECHO @196:32
  205. AMSCROLL /pauz +27 27 A
  206. REM PAGE 19
  207. ACLS /splt +95
  208. AECHO @196:32
  209. AECHO "To produce color message prompts use this format."
  210. AECHO "AMSG +window wndtxt screen screen-ascii [switch] [messages..]"
  211. AECHO @196:32
  212. AECHO "Three color attributes are needed between the program name"
  213. AECHO "and the screen ascii code. Notice the + sign denoting color."
  214. AECHO @196:32
  215. AECHO "Color Attributes are constructed for the display window and"
  216. AECHO "the background screen. The window text uses the window color"
  217. AECHO "for its background so entering a foreground attribute is all"
  218. AECHO "that's necessary."
  219. AECHO @196:32
  220. AECHO "Color attributes are constructed by adding background and"
  221. AECHO "foreground colors. For a blue window bordered in bright white"
  222. AECHO "you would add 16 + 15 = 31."
  223. AECHO @196:32
  224. AECHO "16 = Blue Background        15 = White Foreground"
  225. AECHO @196:32
  226. AECHO "AMSG +31 15 113 15 @34An example color message@34"
  227. AECHO "produces a blue window bordered in white, with white message text."
  228. AECHO "The screen has a white background with blue text, and ascii code"
  229. AECHO "15 is used for the wallpapering. Here it is on the screen."
  230. AECHO @196:32
  231. AMSCROLL /pauz +27 27 A
  232. REM PAGE 20
  233. AMSG +31 15 113 Example "An example color message"
  234. REM PAGE 21
  235. AMSG /c
  236. AMSCROLL /pauz +27 27 A
  237. REM PAGE 22
  238. ACLS /blko +79
  239. AECHO @205:75
  240. AECHO "Amsg also has options to take user input and store them in the"
  241. AECHO "Environment, or return integer values as Error level codes."
  242. AECHO @196:32
  243. AECHO "Batch file users are allowed to enter up to 64 characters."
  244. AECHO "Entered character strings are stored in the Environment,"
  245. AECHO "and assigned to a variable called INPUT."
  246. AECHO @196:32
  247. AECHO "To do this use the /npt option."
  248. AECHO "Typing ... AMSG +110 0 116 @34INPUT=@34 /npt "Enter a string into the Environment"
  249. AECHO "will display a Brown input window bordered with yellow text"
  250. AECHO "on a white screen with red text."
  251. AECHO "96 + 14 = 110 Brown background and yellow text"
  252. AECHO "0 = Black text."
  253. AECHO "112 + 4 = 116 White background and red text."
  254. AECHO @196:32
  255. AECHO
  256. AMSCROLL /pauz +96 27 A
  257. REM PAGE 23
  258. AMSG +110 0 116 "INPUT=" /npt "Enter a string into the Environment"
  259. REM PAGE 24
  260. ACLS +7
  261. AECHO @205:75
  262. AECHO "Here's a look at the environment after the input."
  263. AECHO @196:32
  264. AECHO
  265. AECHO
  266. SET
  267. AMSCROLL /pauz +112 27 A
  268. REM PAGE 25
  269. ACLS +116 /tnl
  270. AECHO @205:75
  271. AECHO "You can obtain user input in the form of an integer"
  272. AECHO "by using the /erl option switch."
  273. AECHO "Inputs are returned within the error level range (0-255)"
  274. AECHO "Users entering values below zero will have values returned"
  275. AECHO "as zero. Values entered equal to or above 255 will be returned as 255."
  276. AECHO "The program limits input to three digits or less."
  277. AECHO @196:32
  278. AECHO "Typing... AMSG +110 0 116 Integers /erl @34Input a an integer value@34"
  279. AECHO "Produces an input screen similiar to the one just seen"
  280. AECHO @196:32
  281. AECHO
  282. AMSCROLL /pauz +64 27 A
  283. REM PAGE 26
  284. AMSG +110 0 116 Integers /erl "Input an integer value"
  285. REM PAGE 27
  286. ACLS +7
  287. AECHO @205:75
  288. AECHO "HOW TO USE ABATMENU"
  289. AECHO @196:32
  290. AECHO "To generate a Black and White Menu, pass these arguments..."
  291. AECHO @196:32
  292. AECHO "ABATMENU screen-ascii Menu-Title Selection-Names..."
  293. AECHO @196:32
  294. AECHO "SCRN-ASCII = Ascii code, or number for the screen background."
  295. AECHO "MENU-TITLE = Word or text you enter for the menu title."
  296. AECHO "SELECTION-NAMES = The menu selections you wish to offer."
  297. AECHO @196:32
  298. AECHO "Abatmenu returns an errorlevel code to the batch file, with each"
  299. AECHO "code corresponding to the item selected. Arrow keys move hi-lite,"
  300. AECHO "Enter key selects, and the ESC key exits returning a ZERO."
  301. AECHO @196:32
  302. AECHO "Typing ...."
  303. AECHO "ABATMENU 177 @34 B&W MENU @34 Select1 Select2 Select3 Exit"
  304. AECHO "on the command line or in a batch file"
  305. AECHO "produces the following menu."
  306. AECHO @196:32
  307. AMSCROLL /pauz +7 27 A
  308. REM PAGE 28
  309. :EXMPL
  310. abatmenu 177 " B&W MENU " Select1 Select2 Select3 Exit
  311. IF ERRORLEVEL 4 GOTO XEND
  312. IF ERRORLEVEL 3 GOTO THREE
  313. IF ERRORLEVEL 2 GOTO TWO
  314. IF ERRORLEVEL 1 GOTO ONE
  315. IF ERRORLEVEL 0 GOTO ESCKEY
  316. GOTO EXMPL
  317. :ONE
  318. AECHO @205:75
  319. AECHO "You Chose Selection 1"
  320. AECHO "Abatmenu Returned Errorlevel Code 1"
  321. GOTO BTEND
  322. :TWO
  323. AECHO @205:75
  324. AECHO "You Chose Selection 2"
  325. AECHO "Abatmenu Returned Errorlevel Code 2"
  326. GOTO BTEND
  327. :THREE
  328. AECHO @205:75
  329. AECHO "You Chose Selection 3"
  330. AECHO "Abatmenu Returned Errorlevel Code 3"
  331. GOTO BTEND
  332. :XEND
  333. AECHO @205:75
  334. AECHO "You Chose Selection Exit"
  335. AECHO "Abatmenu Returned Errorlevel Code 4"
  336. GOTO BTEND
  337. :ESCKEY
  338. AECHO @205:75
  339. AECHO "You Pressed the ESC key"
  340. AECHO "Abatmenu Returned Errorlevel Code 0"
  341. :BTEND
  342. REM PAGE 29
  343. AECHO @205:75
  344. AECHO "You can set up your batch file to use the Errorlevel Code"
  345. AECHO "Abatmenu returns by using the ....."
  346. AECHO "IF ERRORLEVEL (code#) GOTO (a label)"
  347. AECHO "statement to perform actions associated with the Selection."
  348. AECHO @196:32
  349. AECHO "The manual contains an example of this in the Batch File Section."
  350. AECHO
  351. AECHO @205:75
  352. AECHO "To produce color menus ABATMENU needs four color attributes."
  353. AECHO "One each for the menu, menu text, hi-lite bar, and background screen."
  354. AECHO @196:32
  355. AECHO "The format is similar to AMSG except that four attributes are used."
  356. AECHO @196:32
  357. AECHO "ABATMENU +31 15 116 113 15 @34* Menu *@34 Select1 Select2 Select3 Exit"
  358. AECHO @196:32
  359. AECHO "The above will generate a simple color menu with 4 selections."
  360. AECHO @196:32
  361. AMSCROLL /pauz +112 27 A
  362. REM PAGE 30
  363. ABATMENU +31 15 116 113 15 Menu Select1 Select2 Select3 Exit
  364. REM PAGE 31
  365. ACLS +11
  366. AECHO @205:75
  367. AECHO "HOW TO USE AECHO"
  368. AECHO @196:32
  369. AECHO "Aecho is a replacement program for the DOS echo and more commands."
  370. AECHO "All the text you're viewing has been displayed with the Aecho program."
  371. AECHO "You can use the Aecho command with default values to display text"
  372. AECHO "that is automatically centered and displayed with a default attribute"
  373. AECHO "taken from screen location 0,0."
  374. AECHO "Aecho will display a blank line when entering the program name alone"
  375. AECHO "on the command line, or a color line with an attribute."
  376. AECHO "You can speed up Aecho's operation by enclosing text in quotation marks."
  377. AECHO @196:32
  378. AECHO "There are three options to allow text positioning."
  379. AECHO "To display text starting at column 0 use /L."
  380. AECHO "To display text so that it is right justified at column 79 /R."
  381. AECHO "To display text at a Column number from (0-79) use /s[col#]."
  382. AECHO " Example: Aecho /s35 @34Text starts at column 35@34"
  383. AECHO @196:32
  384. AECHO "Color attributes options may be specified and entered without regard"
  385. AECHO "to order as long as they are entered before the display text."
  386. AECHO @196:32
  387. AECHO
  388. AMSCROLL /PAUZ +16 27 L
  389. ACLS +11
  390. REM PAGE 32
  391. AECHO @205:75
  392. AECHO "Aecho also offers a /pz switch which will put the Press Any Key Prompt"
  393. AECHO "on the screen that you just saw."
  394. AECHO @196:32
  395. AECHO "You may also store display text in an Ascii File."
  396. AECHO "This not only allows for quicker operation, but also lends some extra"
  397. AECHO "convienience and flexibility to the use of an echo command."
  398. AECHO "The /t option is followed by a text file name with a full path"
  399. AECHO "if necessary. The path may contain a drive name if a disk is loaded."
  400. AECHO "Example: Aecho /t @34C:\mytext.txt@34"
  401. AECHO @196:32
  402. AECHO "Here's an example file that contains instructions"
  403. AMSCROLL /pauz +112 27 A
  404. REM PAGE 33
  405. AECHO +7 /t echotxt.txt
  406. ACLS +95 /blko
  407. REM PAGE 34
  408. AECHO @205:75
  409. AECHO "HOW TO USE AMSCROLL"
  410. AECHO @196:32
  411. AECHO "Amscroll displays moving text messages on your video screen."
  412. AECHO "There are several different effects available."
  413. AECHO "The text that you enter can be made to move across the screen"
  414. AECHO "from left to right, right to left, or alternating between the two."
  415. AECHO @196:32
  416. AECHO "Text can also be made to scroll around the perimeter of the screen,"
  417. AECHO "or with a rolling horizontal bar."
  418. AECHO "There is also a pause option that has been seen in use throughout this"
  419. AECHO "batch file. This option automatically displays a text message, so it's"
  420. AECHO "not necessary to enter any text when using it."
  421. AECHO @196:32
  422. AECHO "The format for using Amscroll is:"
  423. AECHO "Amscroll (Attribute) Option Speed Direction @34Display Text@34"
  424. AECHO "The color attribute is discretionary and may be entered before or"
  425. AECHO "after the option."
  426. AECHO @196:32
  427. AECHO "Here's a look at the help screen so you can view the options"
  428. AECHO "followed by a few demonstrations."
  429. AECHO @196:32
  430. AECHO
  431. AMSCROLL /pauz +80 27 A
  432. REM PAGE 35
  433. AMSCROLL
  434. AMSCROLL /pauz +112 27 A
  435. REM PAGE 36
  436. ACLS +11
  437. AECHO
  438. AECHO
  439. AECHO
  440. AECHO @205:75
  441. AECHO "This is my favorite option, it can turn the video screen into a"
  442. AECHO "hi - lighted message billboard."
  443. AECHO @196:32
  444. AECHO "The asterik gives the appearance of moving lights."
  445. AECHO @196:32
  446. AMSCROLL /PERI +79 27 R *
  447. ACLS /OUT +11
  448. REM PAGE 37
  449. AECHO
  450. AECHO
  451. AECHO
  452. AECHO @205:75
  453. AECHO "The /roll option provides moving text on a horizontally rolling bar."
  454. AECHO "The direction switch operates differently with this option since"
  455. AECHO "the bar moves up and down. Use the L option for movement from"
  456. AECHO "top to bottom. The R option reverses this movement and the"
  457. AECHO "A option alternates between the two."
  458. AMSCROLL /roll +79 27 A "Rolling text message"
  459. REM PAGE 38
  460. ACLS +11
  461. AECHO
  462. AECHO
  463. AECHO
  464. AECHO @205:75
  465. AECHO "You can also display vertically moving text with the /col or"
  466. AECHO "/lr options. This is the /lr option. The direction switches"
  467. AECHO "operate in a manner similar to the /roll option except the"
  468. AECHO "A switch which provides the effect shown."
  469. AMSCROLL /lr +79 27 A "LEFT RIGHT"
  470. ACLS /BLKO +117
  471. REM PAGE 39
  472. ACLS +47 /in
  473. AECHO @205:75
  474. AECHO "HOW TO USE ABATINFO"
  475. AECHO @196:32
  476. AECHO "Abatinfo can provide your batch files some useful information."
  477. AECHO "Most of the information provided is in the form of error level codes."
  478. AECHO "You can get a variety of different dates for time activated batch files,"
  479. AECHO "test for Caps Lock, Scroll Lock, and Number Lock key conditions,"
  480. AECHO "find out if your in the root directory on the current disk,"
  481. AECHO "and a whole range of other system information."
  482. AECHO @196:32
  483. AECHO "Some information is supplied through the system environment."
  484. AECHO "There are two Environmental variables that this information is"
  485. AECHO "assigned to, DIR= and INFO=."
  486. AECHO "The DIR variable is only used to store the current path."
  487. AECHO "All other information is stored under the INFO variable."
  488. AECHO "These two variables will be demonstrated in this tutorial."
  489. AECHO @196:32
  490. AECHO "Here's a look at the Abatinfo Quick help screen,"
  491. AECHO "followed by a small demonstration of some of the options."
  492. AECHO @196:32
  493. AMSCROLL /pauz +36 27 A
  494. ABATINFO
  495. AMSCROLL /pauz +112 27 A
  496. ACLS +11
  497. AECHO @205:75
  498. AECHO "Here's a demo of the /cpsl option to check the state of the"
  499. AECHO "Caps Lock."
  500. AECHO @205:75
  501. ABATINFO /cpsl
  502. IF ERRORLEVEL 1 GOTO CPON
  503. IF ERRORLEVEL 0 GOTO CPOFF
  504. :CPON
  505. AECHO
  506. AECHO "Your caps lock is on."
  507. AECHO @196:32
  508. GOTO TSTBRK
  509. :CPOFF
  510. AECHO
  511. AECHO "Your caps lock is off."
  512. AECHO @196:32
  513. :TSTBRK
  514. AECHO
  515. AECHO @205:75
  516. AECHO "A test to see if break was set at boot up."
  517. AECHO @205:75
  518. ABATINFO /brk
  519. IF ERRORLEVEL 1 GOTO BRKON
  520. IF ERRORLEVEL 0 GOTO BRKOFF
  521. :BRKON
  522. AECHO
  523. AECHO "Break is on."
  524. AECHO @196:32
  525. GOTO DIRDEMO
  526. :BRKOFF
  527. AECHO
  528. AECHO "Break is off."
  529. AECHO @196:32
  530. :DIRDEMO
  531. AECHO
  532. AECHO @205:75
  533. AECHO "The /rtd option checks to see if were currently in the root directory."
  534. AECHO @205:75
  535. ABATINFO /rtd
  536. IF ERRORLEVEL 1 GOTO INRTD
  537. IF ERRORLEVEL 0 GOTO NOTRT
  538. :INRTD
  539. AECHO
  540. AECHO "You are currently in the root directory on this disk."
  541. AECHO @196:32
  542. GOT0 DOENV
  543. :NOTRT
  544. AECHO
  545. AECHO "You're not in the root directory."
  546. AECHO @196:32
  547. AECHO
  548. :DOENV
  549. AMSCROLL /pauz +31 27 A
  550. ACLS +11 /wr
  551. AECHO @205:75
  552. AECHO "You can find out the number of free disk bytes by using"
  553. AECHO "the /fdb Option."
  554. AECHO @196:32
  555. ABATINFO /drv
  556. IF ERRORLEVEL 4 GOTO DSKFOR
  557. IF ERRORLEVEL 3 GOTO DSKTHREE
  558. IF ERRORLEVEL 2 GOTO DSKTWO
  559. IF ERRORLEVEL 1 GOTO DSKONE
  560. IF ERRORLEVEL 0 GOTO DEFERR
  561. :DSKFOR
  562. AECHO
  563. ABATINFO /fdb D
  564. AECHO "Available bytes on this disk:" %INFO%
  565. AECHO
  566. GOTO DEFERR
  567. :DSKTHREE
  568. AECHO
  569. ABATINFO /fdb C
  570. AECHO "Available bytes on this disk:" %INFO%
  571. AECHO
  572. GOTO DEFERR
  573. :DSKTWO
  574. AECHO
  575. ABATINFO /fdb B
  576. AECHO "Available bytes on this disk:" %INFO%
  577. AECHO
  578. GOTO DEFERR
  579. :DSKONE
  580. AECHO
  581. ABATINFO /fdb A
  582. AECHO "Available bytes on this disk:" %INFO%
  583. AECHO
  584. AECHO @196:32
  585. AECHO
  586. :DEFERR
  587. AECHO @205:75
  588. AECHO "The current path can be saved by using the /pth Option."
  589. AECHO @205:75
  590. ABATINFO /pth
  591. AECHO
  592. AECHO "Here's the path:" %DIR%
  593. AECHO
  594. AECHO @205:75
  595. AMSCROLL /pauz +31 27 A
  596. ACLS +31 /in
  597. AECHO @205:75
  598. AECHO "HOW TO USE ABATJOB"
  599. AECHO @196:32
  600. AECHO "Abatjob is a catch all program for several miscellaneous functions."
  601. AECHO "You can use it to control several different aspects of the display screen."
  602. AECHO "A variety of different functions allow you to Draw different items,"
  603. AECHO "change or invert screen color, blink or write text,"
  604. AECHO "set up loop counter in the environment,"
  605. AECHO "and other useful items."
  606. AECHO @196:32
  607. AECHO "Here's the Quick help screen for Abatjob."
  608. AECHO @196:32
  609. AMSCROLL /pauz +27 27 A
  610. ABATJOB
  611. AMSCROLL /pauz +112 27 A
  612. ACLS +48
  613. AECHO @205:75
  614. AECHO "Here's a couple of examples of the drawing functions."
  615. AECHO "A double bordered box at location 5, 30, 15, 50,"
  616. AECHO "and a horizontal line at row 20, column 5, of length 30."
  617. ABATJOB /sbox +27 DD 5 30 15 50
  618. ABATJOB /line +31 H 20 5 30
  619. AMSCROLL /pauz +11 27 A
  620. ACLS +11
  621. AECHO @205:75
  622. AECHO "Abatjob allows you to set up a loop variable in the environment."
  623. AECHO "To do this use the /cntr option followed by a number to set the counter."
  624. AECHO "The Environment contains a variable named COUNTER to store this."
  625. AECHO @196:32
  626. AECHO "Here's the Environment with the variable set to 50."
  627. AECHO @196:32
  628. AECHO
  629. ABATJOB /cntr 50
  630. SET
  631. AMSCROLL /pauz +31 27 A
  632. ACLS +31 /blko
  633. AECHO @205:75
  634. AECHO "You can Increment and Decrement the this variable by one, using the"
  635. AECHO "/inc and /dec options. These options don't take any arguments"
  636. AECHO "and will not set the counter to a negative number."
  637. AECHO @196:32
  638. AECHO "Here's the Environment after using the /inc option."
  639. ABATJOB /inc
  640. AECHO
  641. SET
  642. AMSCROLL /pauz +27 27 A
  643. ACLS /BLKO +117
  644. AECHO "There are a lot of functions that weren't covered in this tutorial"
  645. AECHO "because of space and time limitations. Hopefully, you'll explore"
  646. AECHO "the different programs to find the functions you find useful."
  647. AECHO @196:32
  648. AECHO "AVIEWDOC.BAT allows you to view the software documents."
  649. AECHO @196:32
  650. AECHO "APRNTDOC.BAT allows you to print the software documents."
  651. AECHO
  652. AECHO @196:32
  653. AECHO "ABATMENU and AMSG also allow you to use Ascii Text Files"
  654. AECHO "to store multiple program option sets for complex batch files."
  655. AECHO
  656. AECHO @232:55
  657. AECHO +113 "ATXTFILE.BAT shows the use of text files for options."
  658. AECHO @232:55
  659. AECHO
  660. AECHO @232:55
  661. AECHO +113 "AEXMPLES.BAT shows several color menus and messages."
  662. AECHO @232:55
  663. AECHO
  664. AECHO "Good Luck!"
  665. AECHO
  666. AMSCROLL /pauz +81 27 A
  667. REM END OF TUTORIAL
  668. ACLS /hz +7
  669. :TUTEND
  670.  
  671.